When I\'m running a simple Ruby script, what\'s the easiest way to dump an object\'s fields to the console?
I\'m looking for something similar to PHP\'s print
print
puts foo.to_json
might come in handy since the json module is loaded by default