You can also use pretty print 'pp', in IRB:
In Rails console, you don't have to require 'pp'. The print method is used to inspect a variable. It will call the to_s method of an object. Doing:
is equivalent to:
This will print: "This is demo"