# Add small line in \section title

I'm trying to duplicate an old document that has a small centered line above each \section. I have not been able to duplicate this when I set the formatting for the \section. (I'm using the titlesec package, among others.) This is an example of what I've tried:

\titleformat{\section}{\normalfont\Large\filcenter}{\rule{.5in}{.02in} \\ \thesection}{0em}{}

Is there a way to do this without putting the {\rule{.5in}{.02in} before each \section?

-