The following might give your desired result:
\documentclass[]{report}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{titlesec, blindtext, color, pbox}
\definecolor{gray75}{gray}{0.75}
\newcommand*{\hsp}{\hspace{20pt}}
\newcommand{\titlepbox}[1]{\pbox[t]{0.7\textwidth}{#1}}
\titleformat{\chapter}[block]{\Huge\bfseries}{\hfill\thechapter\hsp\textcolor{gray75}{|}\hsp}{0pt}{\Huge\bfseries\titlepbox}
\begin{document}
\chapter{Foo}
\blinddocument
\end{document}

You might tweak the \titlepbox command (e.g. insert a \raggedleft or \raggedright infront of the #1) for some more options.
Also the maximum width (currently at 0.7\textwidth) of the headings (excluding the number and vertical line) can be changed.
The [t] controls vertical placement -- [b] would make the number bottom aligned to the heading.
\hspmacro doesn't have to be long. You might change the\newcommandto\newcommand*. – Skillmon Jul 08 '17 at 18:25