Is there a way to automatically output variable names and values to Rails logs as they're defined?
For example:
company_count = Company.count
person_count = Person.count
Instead of doing something like logger.debug for each line, can we set up some method that automatically outputs something like the following as each line is processed?
company_count set to 12
person_count set to 9