I assume that you can achieve what you want by modifying the hooks, but just modifying the built-in hook is not enough, since the only argument passed to the built-in hook is already an evaluated result and no other argument. And modifying a large number of hooks is too risky and not worth it. Here is something that allows you with minimal effort. For example, you can define the following function s in your knitr tuner:
s <- function(x){ paste0(deparse(substitute(x)), " = ", x) }
And then you can use something like rs(qt(p = 0.95, df = 24)) or \Sexpr{s(qt(p = 0.95, df = 24))} to get the desired result.
Edit: A more complicated way could be:
s <- function(x){ paste0(deparse(substitute(x)), " = ", knitr::knit_hooks$get("inline")(x)) }
This version of s will give your rounded numerical results just like the built-in hook by default.
Edit: Thanks to @ user2554330, I am changing deparse(sys.call()[[2]] to deparse(substitute(x)) , following the more common idiom R.
source share