Etymology
Today it means: In a whimsical fashion; whimsically. Full definition →
From whimsy + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.