This principle presents a great opportunity for students to learn some basic chemistry and physics, why some molecules like CO2 trap heat and others like O2 do not. It can also be used as a way for students to gain an understanding of good science because many of the "junk-science" claims of deniers challenge the science around this principle.
Middle school students can think about this issue metaphorically (that greenhouse gases trap heat like a blanket traps heat) while learning the basics of the science and physics.
In high school, can look at the levels of CO2 over the last 100 years and compare that with changes in global temperatures. They can explore the "What's Warming the World" interactive graphic. They can do research on the potential impact the thawing of the permafrost will have on the levels of methane in the atmosphere and what that means for global temperatures.
In the introductory undergraduate curriculum, students can explore the impact carbon dioxide, methane, nitrous oxide and sulfur hexafluoride, the "Global Warming Potential" or GWP of each, and how long each lasts in the atmosphere (chemistry). They can explore how ultraviolet or shortwave radiation travels easily through the Earth's atmosphere to warm the earth, but how that heat or infrared (longwave) radiation is trapped by the atmosphere (physics).