Ruby: console.log?

puts is the equivalent in ruby.

Example

puts 'Hello World!'

If you are running your server in the console, you can use puts. Otherwise, you will need to write to a file, possibly via a logger (like Rails.logger.info).