As you plan your weekly meals and make a shopping list, check the contents of the refrigerator and freezer and see what ingredients should be used that week.
When you use the last of an item, immediately note it on your shopping list so that you remember to replace it.