From a philosophically holier-than-thou point of view, shouldn't you be thinking of the best way to live instead of the best way to die?
From a less Douche-tacular point of view than acknowledges what this topic is, I would have three options.
1. Wrestling a shark and only losing because you decided to give him a fair chance by wearing a blindfold, tying an arm behind your back and letting all of his shark buddies join in.
2. Endure a dozen or so small explosions before getting punched in the face with a Grenade Launcher (Quoted from my favourite LPer, meh...)
3. Cackling Maniacally. Whatever the situation, whether it's as bullets riddle your body, as your creation awakens and proceeds to murder you though you brought it life with electricity, or quietly in a hospital bed surrounded by loved ones. However you go, make sure it's Cackling Maniacally.