Interactively...

Select the expression or subexpression you want to evaluate in place

Evaluate the selection

Choose Evaluation Evaluate in Place () to evaluate the selection in place:

Programmatically...

Evaluate a notebooks selection in place with SelectionEvaluate: