In addition to having the number for your bank, carry the number/know the procedure to call to change your debit PIN over the phone. I think this can only be done over the phone.

If you want to use your Credit card as emergency backup for ATM, and never had a PIN for it (or can't find it/need a new one), you can request one, but they are sent to you by MAIL, plan ahead.