There are two routes depending on the game.
In Cars, you earn enough points to purchase Snot Rod. In Cars Mater-National, there's a cheat code to unlock him instead.
If you're after that Mater-National code specifically, that's the detail still to track down.