No, node.js can't replace ruby. You'd have trouble writing most of the scripts I regularly write in Ruby using node.js (even disregarding the difficulty of running them on my local machine).
Now, on the other hand, if you'd asked "Can node.js replace Rails/Sinatra/etc?", the answer might be quite different.