You can't just drive down to Mexico and sell/leave your car there, at least not as of a few years back. There's probably a proper way to do it but I doubt you can just do it on a whim.
If you want to check out Peru while you're down there, this is something I've been looking at doing:
The What? ? The Adventurists