I have the following in my ~/.irbrc file:
~/.irbrc
IRB.conf[:PROMPT][:DEFAULT][:RETURN].prepend ?#
In