Ruby is way slower but it has a way better expressions. Node outperforms ruby in certain scenarios.
If you add another layer like typescript on top of node. There is nothing to say against node.
But the bigger the project get the more you want your compiler to complain if you do something stupid.
Ruby has the advantage of being duck-typed which allows some guarantees within a function / method.
The way more important question to me is ... which language do you already know? and why not use both for the things they are good in?