The men — both in their twenties — were arrested for selling the €2 ($2.75) packages in the north of the city popular with northern European expats.
The 'anti-crisis' packets included a cigarette, rolling papers and a small amount of hashish or marijuana, Spain's online daily Información reported.
A search of the suspects' home uncovered 200 grams (7 ounces) of marijuana, the same amount of hashish and €272 in cash.
Local authorities said the suspects targeted local high school students, a practice which they were trying to stamp out as part of a drive to improve school safety.
The term 'anti-crisis' — a synonym for cheap — has been widely used in Spain in recent years to sell everything from haircuts to budget holidays.