How do I print out an object for debugging?

Use Object.toJSON(). It will turn any JavaScript object into a nicely formatted JSON string, which you can then print to the log.

Mojo.Log.info('Success : ' + Object.toJSON(someObject));

Learn More