Time machine for hd upgrade
Carbon Copy Cloner is my recommended way to migrate a hard drive. It's like SuperDuper, but free. Does enough to get the job done.

I wouldn't rely on Time Machine. There's quite a bit of stuff that's excluded from Time Machine by default. And it doesn't always follow symlinks around your file system properly when backing up. For example, I had trouble with it backing up duplicates of a few files installed by Homebrew instead of the symlinks that they were. It de-linked them. That could wreak havoc on your Homebrew install if you were to restore from it.