<p>In Ruby, is there the equivalent of the <code>__str__()</code> method that you can define on Python classes?  </p>

On the core classes it is typically 'inspect'.
Eg:
```
```
irb(main):001:0> puts "array is: #{[1,2,3].inspect}"
array is: [1, 2, 3]
=> nil
irb(main):002:0> puts "array is: #{[1,2,3]}"
array is: 123
=> nil
irb(main):003:0>
```
```