# divider line inside framed environment

Adding a horizontal rule inside the framed environment, the line only spans the text area.
But i want the line to span the complete box width.

How do i do that?

Current Code:

\begin{framed}
Foo.\\
\rule{1\textwidth}{1pt}\\
Bar\\
\rule{1\textwidth}{1pt}\\
Baz
\end{framed}


Current result:

Expectation:

To make this work seamlessly in LyX (which outputs \rule for horizontal lines), I decided to re-define the \rule command to move the line 9pt to the left (which seems to be the inner padding of the framed environment) and make it 18pt longer:
\newlength{\framedline}