Yeah I wouldn't do it at school, do it when you're hanging out sometime.
You just gotta be a man and do it. There's seriously no way to sound cool when you do it, but you just have to not worry about it. "Will you go out with me" sounds like you're 12, but might as well be straight up...
Unless I'm missing something lol, but that's how I did it.