Switch puts to Rails.logger.debug