I think this teacher should take this as an opportunity to examine what it is he, and the institution he works for is offering these students as an alternative, and consider the students are making rational choices that serve them better.
We know from the Rat Park study that rats in an enriched environment full of positive social engagement and freedom do not choose morphine. [1]
If the students are choosing drugs, it's because they are trapped in a bare metal cage.
For high achievers the do good in high school so you can go to a good college so you can get a good job track can be financially rewarding, but it is also stressful, often leads to burn out and depression and at the end a kind of existential malaise.
For average students this track means bleak economic prospects, low status, a boring monotony with high student loan debt burden.
Cannabis based friendships while in high school form extremely tight, rewarding social bonds. With a shared group identity and shared activities. Going to a concert and getting 'so high' can be an extremely life affirming peak experience that strengthens social bonds.
If his students are rejecting society's plan for them and choosing another, perhaps he should examine what it is he is offering. The conclusion often made from his sentiment is a reflexive authoritarian prohibition.
I know many high achieving friends that rejected society's plan, got high, had fun and went on to start lucrative tech careers, and started businesses that are building the future.
I know many other average students that rejected society's plan, got high, had fun and went on to live rewarding ski-bum lifestyles funded by bar tending, waiting tables, and small scale real estate investment.
The people with their boot on your face don't have your best interests at heart. Believe in yourself, and find your own way.
[1] https://en.wikipedia.org/wiki/Rat_Park