Personally, I'd rent a car and drive. It's an easy trip down the 5 and most of the parts Germany have no speed limit. Just don't speed once you get past Basel.
This depends on if you have the time and like to see the scenery or perhaps stop in a village for lunch or shopping.