It's too prevent people shoulder surfing and seeing how many characters are in your password. It's a security measure seen with some distros. While not related to your question, and won't resolve anything related to Ruby, you can change this behavior with relative ease. I explain how to do so in this article:
By default, Ubuntu doesn't show anything when you type passwords in the terminal. They made this decision for security reasons. Shoulder-surfing is a thing.