At the land border with Tijuana you will likely not even see a Mexican immigration agent. There are generally no formalities whatsoever. There are offices where you should be able to track down a Mexican immigration agent if they are not on break. They are often on break. They may or may not feel like stamping your passport if you ask nicely.