Write to rails console?

When I want to try or debug smthing I run rails console and do some stuff there. I can print some text or variables ...