When trying to update OpenSSL - I broke (seemingly) everything surrounding Ruby and Rails on my laptop. Even after uninstalling ruby and rails through gem uninstall
gem uninstall
Similar to @ncherro, I got this using ruby filename.rb. Running
bundle exec ruby filename.rb
works.