Any language can get you a maintenance nightmare, but a lack of types and a monolith will get you there faster.
Nothing in ruby forces you to make it a monolith of course, but the lack of types hurts
The language encourages metaprogramming, and disencourages typing. This makes maintenance much more complicated when compared to other languages such as Python, typescript or PHP.