If you want everything exactly the same as before, just go ahead and do a time machine restore and it will be virtually the same as it was.
The other way is to use a program like SuperDuper and make an exact clone copy of your HD.
It depends on what your purpose is. If it is to just restore to exactly how it was, Time Machine is the simplest bet.