The best option when traveling in Mexico is usually to pay with pesos. Some places, particularly tourist spots, may accept US dollars but will usually give you a less favorable exchange rate than the banks. If you need to withdraw cash, it's best to use Mexican ATMs which offer better exchange rates than US ATMs.