You’ll need to fill out the customs declaration form both prior to arriving Mexico and prior to departure from Mexico to your home country. You’ll present this form to the customs officer upon arrival. Once you finish filling out the information, you will get a QR code, save it so you can show it at customs. Fill out this document online here