You can use an inside lock which is installed on most garage doors. Be sure that no one tries to use the door while it is locked.
Attempting to operate a door while locked can damage the garage door, garage door opener, or both.
We recommend just unplugging the garage door opener and bring a house key with you to enter the house through an entry door when returning home. Most modern garage door openers have a locking motor which cannot be forced open.