http://beginrescueend.com/
I use it to replicate Ubuntu 10.4 server setups on my Arch dev box. RVM does weird stuff with 'cd' so you may prefer rbenv:
https://github.com/sstephenson/rbenv
...though I have no experience of that.